package com.example.teamtribe.database;

import android.os.Parcel;
import android.os.Parcelable;

public class MegId implements Parcelable {

    private int id;
    private int type;

    public MegId() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeInt(this.type);
    }

    protected MegId(Parcel in) {
        this.id = in.readInt();
        this.type = in.readInt();
    }

    public static final Parcelable.Creator<MegId> CREATOR = new Parcelable.Creator<MegId>() {
        @Override
        public MegId createFromParcel(Parcel source) {
            return new MegId(source);
        }

        @Override
        public MegId[] newArray(int size) {
            return new MegId[size];
        }
    };
}
